package com.fengyunhe.oauth.service;

import com.fengyunhe.oauth.Client;

import java.util.List;

/**
 * 客户端Service
 * Created by yangyan on 2015/6/29.
 */
public interface ClientService {
    public Client createClient(Client client);// 创建客户端

    public Client updateClient(Client client);// 更新客户端

    public void deleteClient(String clientId);// 删除客户端

    Client findOne(String clientId);// 根据id查找客户端

    List<Client> findAll();// 查找所有

    Client findByClientId(String clientId);// 根据客户端id查找客户端

    Client findByClientSecret(String clientSecret);//根据客户端安全KEY查找客户端
}
